package com.hxzy.controller.vue.employee.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/9/1 9:16
 * @Version 1.0
 */
@Getter
@Setter
@ToString
@ApiModel(value = "员工新增模型")
public class EmployeeAddReq {
    /**
     * 登录账户
     */
    @ApiModelProperty(value = "账户名",required = true)
    @NotBlank(message = "账户不能为空")
    private String loginName;

    /**
     * 登录密码
     */
    @ApiModelProperty(value = "密码(大于4位)",required = true)
    @Length(min = 4,message = "密码长度必须大于4位")
    @NotBlank(message = "密码不能为空")
    private String loginPwd;

    /**
     * 确认密码
     */
    @ApiModelProperty(value = "确认密码",required = true)
    @NotBlank(message = "确认密码不能为空")
    private String loginConfirmPwd;

    /**
     * 性别(0 女 1 男)
     */
    @ApiModelProperty(value = "性别(0 女 1 男)",required = true)
    @NotBlank(message = "性别不能为空")
    private String gender;

    /**
     * 状态（1停用，0正常）
     */
    @ApiModelProperty(value = "状态(1停用，0正常)",required = true)
    @NotBlank(message = "状态不能为空")
    private String status;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像",required = true)
    @NotBlank(message = "头像不能为空")
    private String avatar;
}
